<!--
 500页面
-->
<script lang="ts" setup>
import {NButton} from 'naive-ui'
import {useRouter} from 'vue-router'
import Icon500 from '@/icons/500.vue'

const router = useRouter()

function goHome() {
	router.push('/')
}
</script>

<template>
	<div class="flex h-full dark:bg-neutral-800">
		<div class="px-4 m-auto space-y-4 text-center max-[400px]">
			<header class="space-y-2">
				<h2 class="text-2xl font-bold text-center text-slate-800 dark:text-neutral-200">
					500
				</h2>
				<p class="text-base text-center text-slate-500 dark:text-slate-500">
					服务器错误
				</p>
				<div class="flex items-center justify-center text-center">
					<Icon500 class="w-[300px]"/>
				</div>
			</header>
			<NButton type="primary" @click="goHome">
				回到首页
			</NButton>
		</div>
	</div>
</template>
